﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gadgeteer.Interfaces.Fakes.Tests
{
    [TestFixture]
    public class FakeCharacterDisplayTest
    {
        [Test]
        public void PrintHello()
        {
            var display = new FakeCharacterDisplay();
            display.PrintString("hello");

            Assert.That(display.Line1, Is.EqualTo("hello"));
            Assert.That(display.Line2, Is.EqualTo(String.Empty));
        }

        [Test]
        public void PrintWrappingText()
        {
            var display = new FakeCharacterDisplay();
            display.PrintString("hello you and me and ...");

            Assert.That(display.Line1, Is.EqualTo("hello you and me"));
            Assert.That(display.Line2, Is.EqualTo(" and ..."));
        }
    }
}
